﻿package plugin.suishenshop
{
    import com.core.*;
    import com.sh.game.consts.*;
    import com.sh.game.global.*;
    import plugin.suishenshop.game.*;
    import view.*;

    public class SuiShenShop extends FlashUIBase
    {
        private var _ui:SuiShenShopUICtrl;

        public function SuiShenShop()
        {
            return;
        }// end function

        override protected function preLoaderInit() : void
        {
            super.preLoaderInit();
            appendLoader(Config.getUrl("assets/images/mornui/common.swf", ResourceType.NORMAL));
            return;
        }// end function

        override protected function initGUI() : void
        {
            this._ui = new SuiShenShopUICtrl(close);
            mGUI = this._ui;
            return;
        }// end function

        override protected function openRefresh() : void
        {
            super.openRefresh();
            ModelProxy.change("data", "isShopOpen", true);
            ModelProxy.change("mainui", "checkDrug", null);
            return;
        }// end function

        override protected function closeComplete() : void
        {
            super.closeComplete();
            ModelProxy.change("data", "isShopOpen", false);
            ModelProxy.change("mainui", "checkDrug", null);
            return;
        }// end function

    }
}
